package com.ruoyi.table.mapper;

import com.ruoyi.table.domain.Family;
import com.ruoyi.table.domain.Middle;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Entity com.ruoyi.table.domain.Middle
 */
@Mapper
public interface MiddleMapper extends BaseMapper<Middle> {



    @Select("select a.middle_id,b.role_name,c.power_name from middle a left join role b on a.role_id=b.role_id left join power c on a.power_id=c.power_id")
    List<Middle> MiddleList();

}




